]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: hide the overlay for a zoomed window when exiting the overivew
authorStefano Facchini <stefano.facchini@gmail.com>
Wed, 18 Apr 2012 11:54:06 +0000 (13:54 +0200)
committerStefano Facchini <stefano.facchini@gmail.com>
Tue, 24 Apr 2012 20:37:19 +0000 (22:37 +0200)
Otherwise it remains visible until the overview animation is completed.

https://bugzilla.gnome.org/show_bug.cgi?id=674323

js/ui/workspace.js

index 81af030ea56369916480d218aab5cebe20f9cfed..ae031c1836a727ffb94c1f0453997729cb8f2599 100644 (file)
@@ -1134,7 +1134,6 @@ const Workspace = new Lang.Class({
     _hideAllOverlays: function() {
         for (let i = 0; i < this._windows.length; i++) {
             let clone = this._windows[i];
-            Tweener.removeTweens(clone.actor);
             let overlay = this._windowOverlays[i];
             if (overlay)
                 overlay.hide();
@@ -1321,7 +1320,10 @@ const Workspace = new Lang.Class({
 
         this.leavingOverview = true;
 
-        this._hideAllOverlays();
+        for (let i = 0; i < this._windows.length; i++) {
+            let clone = this._windows[i];
+            Tweener.removeTweens(clone.actor);
+        }
 
         if (this._repositionWindowsId > 0) {
             Mainloop.source_remove(this._repositionWindowsId);
@@ -1361,6 +1363,7 @@ const Workspace = new Lang.Class({
             }
         }
 
+        this._hideAllOverlays();
     },
 
     destroy : function() {